<script>
export default {
  name: "message_component"
}
</script>

<template>
  <div>
    <h1>消息组件</h1>
    <div class="row">
      <ul class="nav nav-tabs">
        <li class="col-sm-4">
          <router-link class="list-group-item" active-class="active" to="/message/news">新闻</router-link>
        </li>
        <li class="col-sm-4">
          <router-link class="list-group-item" active-class="active" to="/message/others">其他</router-link>
        </li>
      </ul>
    </div>
    <div class="row">
      <div class=" col-sm-10 ">
        <div class="panel">
          <div class="panel-body">
            <!--            如果不指定include参数 那么在这里展示的所有组件都会被缓存-->
            <!--            include中的参数为组件的name-->
            <keep-alive include="others_component">
              <router-view></router-view>
            </keep-alive>
          </div>
        </div>
      </div>
    </div>
  </div>

</template>

<style scoped>

</style>